package com.linjiang.service;

import com.linjiang.spring.Component;
import com.linjiang.spring.Scope;

@Component(name = "userService")//bean 注解，并指定bean名称
@Scope("prototype")//声明bean的作用域，即该bean是单例还是原型
public class UserServiceImpl implements UserService {
    public UserServiceImpl() {

    }

    @Override
    public void doSomeThing(){
        System.out.println("调用userService方法======>");
    }
}
